﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using SDF.Web.Framework;
using SDF.Web.Framework.Mvc;

namespace SDF.Admin.Models.Catalog
{
    public partial class ProductReviewListModel : BaseSDFModel
    {
        public ProductReviewListModel()
        {
            AvailableProjects = new List<SelectListItem>();
        }

        [SDFResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnFrom")]
        [UIHint("DateNullable")]
        public DateTime? CreatedOnFrom { get; set; }

        [SDFResourceDisplayName("Admin.Catalog.ProductReviews.List.CreatedOnTo")]
        [UIHint("DateNullable")]
        public DateTime? CreatedOnTo { get; set; }

        [SDFResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchText")]
        [AllowHtml]
        public string SearchText { get; set; }

        [SDFResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchProject")]
        public int SearchProjectId { get; set; }

        [SDFResourceDisplayName("Admin.Catalog.ProductReviews.List.SearchProduct")]
        public int SearchProductId { get; set; }

        public IList<SelectListItem> AvailableProjects { get; set; }
    }
}